package com.woniuxy.springboot03configfile.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {
    @Value("${org.giles.name}")
    private String name;
    @Value("${org.giles.age}")
    private int age;
    @GetMapping(value = "/userInfo")
    public String userInfo(){
        return name+":"+age;
    }

}
